<?php

namespace app\admin\controller;

class Ali extends Backend
{
    public function getStsToken()
    {
        try {
            $token = \AliFaceBodyService::getStsToken();
        } catch (\Exception $exception) {
            return $this->jsonReturn(message($exception->getMessage(), false));
        }

        return $this->jsonReturn(message('登录成功', true, $token));
    }
}